<html xmlns:th="http://www.thymeleaf.org">
<head>
    <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css"  crossorigin="anonymous">
</head>
<body>
<div id="container" style="width:1800px">


    <div id="menu" style="background-color:#FFD700;height:200px;width:200px;float:left;">
        <nav class="navbar bg-light">
            <ul class="navbar-nav">
                <li class="nav-item">
                    <a class="nav-link" href="../Student/list.do">学生</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="../Teacher/list.do">教师</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="../Course/list.do">课程</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="../Admin/list.do">管理员</a>
                </li>
            </ul>
        </nav></div>

    <div id="content" style="background-color:#EEEEEE;height:1000px;width:800px;float:left;">
        <table class="table table-striped">
            <thead>
            <tr>
                <th scope="col">id</th>
                <th scope="col">姓名</th>
                <th scope="col">口令</th>
                <th scope="col">性别</th>
                <th scope="col">生日</th>
                <th scope="col">课程</th>
                <th scope="col">专业</th>
                <th th:text="操作"/>
            </tr>
            </thead>
            <tbody>
            <tr th:each="admin:${adminList}">
                <th th:text="${admin.id}"/>
                <th th:text="${admin.name}"/>
                <th th:text="${admin.password}"/>



                <th th:text="${admin.username}"/>
                <th ><a th:href="@{delete.do(id=${admin.id})}">删除</a>   &nbsp; &nbsp;<a th:href="@{toEdit.do(id=${admin.id})}">修改</a> </th>
            </tr>
            </tbody>
        </table>
        <nav aria-label="Page navigation example">
            <ul class="pagination">
                <!--                <li class="page-item"><a class="page-link" th:href="@{/Teacher/list.do(currPage=(${currPage}-1),pageSize=3)}">Previous</a></li>-->
                <li class="page-item"><a class="page-link" th:href="@{/Admin/list.do(currPage=1,pageSize=3)}">1</a></li>
                <li class="page-item"><a class="page-link" th:href="@{/Admin/list.do(currPage=2,pageSize=3)}">2</a></li>
                <li class="page-item"><a class="page-link" th:href="@{/Admin/list.do(currPage=3,pageSize=3)}">3</a></li>
                <!--                <li class="page-item"><a class="page-link" th:href="@{/admin/list.do(currPage=(${currPage}+1),pageSize=3)}">Next</a></li>-->
            </ul>
        </nav>
        <a href="/Student/page.do?page=addAdmin">增加教师</a>
    </div>

</div>
<script src="/bootstrap/js/jquery.slim.min.js"  crossorigin="anonymous"></script>
<script src="/bootstrap/js/bootstrap.bundle.min.js"  crossorigin="anonymous"></script>
</body>
</html>